package com.zzzyh.forumsystemclient.services;

import com.zzzyh.forumsystemclient.model.Article;
import com.zzzyh.forumsystemclient.model.PageRequest;
import com.zzzyh.forumsystemclient.model.PageResult;

import java.util.List;

public interface IArticleService {
    public PageResult<Article> getArticles(PageRequest pageRequest);

    Long gerUserIdByArticleId(Long articleId);

    Article getArticleByArticleId( Long articleId);

    void createArticle(Article article);

    void updateArticle(Article article);

    void deleteArticle(Long articleId);

    List<Article> getArticlesByUserId(Long userId);

    List<Article> searchArticles(String keyword);
}
